/*    */ package com.qmsk.business.store.rack.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class RackDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 20 */     return getGsonOfParams("selectSqlOfParam", params, nPageIdx, nPageSize, 
/* 21 */       true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Map<String, Object> params) throws SQLException
/*    */   {
/* 26 */     return getGsonOfParams("selectSqlOfParam", params, false);
/*    */   }
/*    */ 
/*    */   public int cascadeAdd(Object hId, Object code, Object name) throws SQLException
/*    */   {
/* 31 */     String[] head = { "hId", "code", "name", "status" };
/* 32 */     Object[] data = { hId, code, name, Integer.valueOf(0) };
/* 33 */     GsonHeadOneRow row = new GsonHeadOneRow(head, data);
/* 34 */     return insertGsonHeadOneRow(row);
/*    */   }
/*    */ 
/*    */   public Boolean checkStatus(Long id) throws SQLException {
/* 38 */     Map params = new HashMap();
/* 39 */     MapUtils.addToMap(params, "id", id);
/* 40 */     MapUtils.addToMap(params, "status", Integer.valueOf(1));
/* 41 */     return Boolean.valueOf(getGsonOfParams("selectSqlOfParam", params, false)
/* 42 */       .isExistsData());
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.store.rack.dao.RackDao
 * JD-Core Version:    0.5.3
 */